home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / util4 / aman-115.lha / aman-1.15 / Source / hooks.c < prev    next >
C/C++ Source or Header  |  1995-09-15  |  1KB  |  73 lines

  1. /*
  2.  *  HOOKS.C
  3.  */
  4.  
  5. /* $VER: $Id: hooks.c,v 1.1 1995/07/21 20:56:14 tf Exp $ */
  6.  
  7. #ifdef _DCC
  8.  
  9. #define REG(x) __ ## x
  10. #define ASM
  11. #define SAVEDS __geta4
  12.  
  13. #else /* !_DCC */
  14.  
  15. #define REG(x) register __ ## x
  16.  
  17. #if defined __MAXON__ || defined __GNUC__
  18. #define ASM
  19. #define SAVEDS
  20. #else
  21. #define ASM    __asm
  22. #define SAVEDS __saveds
  23. #endif /* if defined ... */
  24.  
  25. #endif /* _DCC */
  26.  
  27. /*
  28.  *  MUI Stuff
  29.  */
  30.  
  31. SAVEDS ASM char *lv_confunc( 
  32.   REG(a0) struct Hook *hook,
  33.   REG(a2) Object *app,
  34.   REG(a1) char *fname )
  35. {
  36. /*
  37.   char pattern[80];
  38.   ParsePatternNoCase( "#?.info", pattern, sizeof(pattern) );
  39.   return MatchPatternNoCase(pattern,fname) ? NULL : strdup(fname);
  40. */
  41.   return strdup(fname);
  42. }
  43.  
  44. SAVEDS ASM LONG lv_desfunc( 
  45.   REG(a0) struct Hook *hook,
  46.   REG(a2) Object *app,
  47.   REG(a1) char *fname )
  48. {
  49.   if(fname) free(fname);
  50.   return 0L;
  51. }
  52.  
  53.  
  54. #if 0
  55. SAVEDS ASM LONG lv_selfunc(
  56.   REG(a0) struct Hook *hook,
  57.   REG(a2) Object *app,
  58.   REG(a1) char *fname )
  59. {
  60.   printf("MultiView \"%s\"\n",fname);
  61.   return 0L;
  62. }
  63.  
  64.  
  65. SAVEDS ASM LONG app_aboutfunc(
  66.   REG(a0) struct Hook *hook,
  67.   REG(a2) Object *app,
  68.   REG(a1) APTR dummy )
  69. {
  70.   return 0L;
  71. }
  72. #endif
  73.